import Article from "../pages/admin/article/Article";
import MockIndex from "../pages/admin/mock/Index";
import MockSimple from "../pages/admin/mock/Simple";
import MockProject from "../pages/admin/mock/Project";
import Image from "../pages/admin/image/Image";
import Home from "../pages/admin/home/Home";

export const adminRoutes = [
	{
		path: '/admin/mock/',
		title: 'Mock测试',
		redirect: '/admin/mock/simple',
		icon: 'ContainerFilled',
		component: MockIndex,
		children: [
			{
				path: '/admin/mock/simple',
				component: MockSimple,
				exact: true,
				icon: 'EditFilled',
				title: '简单测试'
			},
			{
				path: '/admin/mock/project',
				exact: true,
				component: MockProject,
				icon: 'ProjectFilled',
				title: 'Mock项目'
			}
		]
	},
	{
		path: '/admin/article',
		title: '文章管理',
		component: Article,
		exact: true,
		icon: 'SnippetsFilled',
		children: []
	},
	{
		path: '/admin/index',
		component: Home,
		title: '首页',
		exact: true,
		icon: 'HomeFilled',
		children: []
	},
	{
		path: '/admin/image',
		title: '图片管理',
		exact: true,
		icon: 'FileImageFilled',
		component: Image,
		children: []
	}
]